#pragma once

#include <mmsystem.h>
#include <dsound.h>

#pragma comment( lib , "dsound.lib" )
#pragma comment( lib , "winmm.lib" )

class DSOUND{
	DSOUND() { }


public:

	~DSOUND() { }

	static DSOUND* GetClass()
	{
		if( _Instance == NULL )
			_Instance = new DSOUND;
		return _Instance;
	}

	void DelMe();

private:
	static DSOUND* _Instance;

	LPDIRECTSOUND8 lpds;

//	LPDIRECTSOUNDBUFFER* buffer;

public:
	void Init( HWND hWnd );
	void LoadWave( LPSTR Filename , LPDIRECTSOUNDBUFFER* buffer );
};